package com.fqgj.xjd.user.service;

import com.fqgj.xjd.user.client.request.CreditAuthRequest;
import com.fqgj.xjd.user.client.response.CreditAuthResponse;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/2/27
 * Time: 下午2:24
 * 用户实名认证服务
 */
public interface UserAuthCreditService {
    /**
     * 取消认证
     * @param creditAuth
     * @return
     */
    Boolean cancelAuth(CreditAuthRequest creditAuth);

    Boolean bankAuth(CreditAuthRequest creditAuth);

    /**
     * 芝麻认证
     * @param creditAuth
     * @return
     */
    Boolean auth(CreditAuthRequest creditAuth);

    /**
     * 根据userCode获取认证信息
     * @param userCode
     * @return
     */
    CreditAuthResponse getCreditAuthInfoByUserCode(String userCode);

    /**
     * 初始化zm分
     */
    void initZmScore();

    /**
     * 将姓名和身份证插入表中，并将deleted置1，在绑卡成功后，会更新此条记录
     * @param username
     * @param identityNo
     */
    void initUserNameAndIdentity(String userCode, String username, String identityNo);
}
